#include "file.h"

S h[100] =
    {
        {.id = 1, .age = 18, .sco = 99, .sex = "男", .name = "唐三"},
        {.id = 2, .age = 18, .sco = 99, .sex = "男", .name = "萧炎"},
        {.id = 3, .age = 18, .sco = 99, .sex = "男", .name = "叶晨"},
        {.id = 4, .age = 18, .sco = 99, .sex = "女", .name = "小舞"},
        {.id = 5, .age = 18, .sco = 99, .sex = "女", .name = "萧熏儿"},
        {.id = 6, .age = 18, .sco = 99, .sex = "女", .name = "柳如烟"},
};
S g[100] =
    {
        {.id = 7, .age = 20, .sco = 90, .sex = "女", .name = "烟韵"},
};

char file_name[128] = "nihao.txt";

int main(int argc, char const *argv[])
{
    // FILE *fp = fopen(file_name, "w+");
    // for (int i = 0; i < 6; i++)
    // {
    //     fprintf(fp, "名字：%s\t性别:%s\t年龄:%d\t学号:%d\t成绩:%d\n",
    //             h[i].name, h[i].sex, h[i].age,
    //             h[i].id, h[i].sco);
    // }
    // fclose(fp);
    // fp = NULL;
    /*********************************************************************************/
    FILE *ld = NULL ;
    fin(ld);
    tra(ld);
    return 0;
}
